package com.archermind.boc.dal.business;

import java.util.HashMap;
import java.util.List;

import com.archermind.boc.domain.Biz;
import com.archermind.boc.domain.BizTimeout;
import com.archermind.boc.domain.IQ;
import com.archermind.boc.domain.Message;
import com.archermind.boc.domain.Presence;
import com.archermind.boc.ehcache.UserCache;

public interface Icommision {

	public void deportBiz(Biz biz);

	public void write(Message message);

	public void write(IQ iq);

	public boolean addSessionBiz(int Bizid, long createTime, String BizType);

	public UserCache getUserCache(IQ iq, Biz biz);

	public boolean modifyBiz(Biz biz, UserCache userCache);

	public boolean saveTurnTextMessage(Message message);

	public boolean saveTurnImage(Message message, HashMap<String, List<String>> map);

	public void modifyUserCache(UserCache userCache);

	public void acceptRespone(Message message);

	public void rejectRespone(Message message);
	
	//public void cancelSendMessage(IQ iq);

	public int getTimeOut(String typeId);
	
	public void modifyState(Presence presence);
}
